// flex布局
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-column {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-shrink {
  flex-shrink: 0;
}

.justify-between {
  justify-content: space-between;
}

.justify-around {
  justify-content: space-around;
}

.justify-center {
  justify-content: center;
}

.justify-end {
  justify-content: flex-end;
}

.align-center {
  align-items: center;
}

.flex-min {
  min-width: 0;
}

.flex-1 {
  flex: 1;
}

.n-s {
  user-select: none;
}

.tc {
  text-align: center;
}

@for $i from 0 through 5 {
  .m-#{$i} {
    margin: $i * 10px;
  }

  .mt-#{$i} {
    margin-top: $i * 10px;
  }

  .mb-#{$i} {
    margin-bottom: $i * 10px;
  }

  .ml-#{$i} {
    margin-left: $i * 10px;
  }

  .mr-#{$i} {
    margin-right: $i * 10px;
  }

  .my-#{$i} {
    margin-top: $i * 10px;
    margin-bottom: $i * 10px;
  }

  .mx-#{$i} {
    margin-left: $i * 10px;
    margin-right: $i * 10px;
  }

  .p-#{$i} {
    padding: $i * 10px;
  }

  .pt-#{$i} {
    padding-top: $i * 10px;
  }

  .pb-#{$i} {
    padding-bottom: $i * 10px;
  }

  .pl-#{$i} {
    padding-left: $i * 10px;
  }

  .pr-#{$i} {
    padding-right: $i * 10px;
  }

  .py-#{$i} {
    padding-bottom: $i * 10px;
    padding-top: $i * 10px;
  }

  .px-#{$i} {
    padding-left: $i * 10px;
    padding-right: $i * 10px;
  }
}

.line-1 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.line-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.cp {
  cursor: pointer;
}

.sn {
  user-select: none;
}

// 文字对齐方式
.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-center {
  text-align: center;
}

// 文字颜色
.text-black {
  color: #000;
}

.text-main {
  color: #222;
}

.text-body {
  color: #626675;
}

.text-muted {
  color: #9195a3;
}

// 文字大小
.font-lg {
  font-size: 24px;
}

.font-mg {
  font-size: 20px;
}

.font-md {
  font-size: 18px;
}

.font-m {
  font-size: 16px;
}

.font {
  font-size: 14px;
}

.font-sm {
  font-size: 12px;
}

// 文字是否加粗
.font-lighter {
  font-weight: 100;
}

.font-light {
  font-weight: 300;
}

.font-normal {
  font-weight: 400;
}

.font-bold {
  font-weight: 700;
}

.font-bolder {
  font-weight: bold;
}

.font .boder {
  border: solid 1px #c6c6c6;
}

.modle {
  background-color: #f0f0f0;
}

// 多余文字隐藏
.text-ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.text-more-ellipsis {
  word-break: break-all;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.shadow {
  box-shadow: 0px 9px 22px 2px rgba(98, 102, 117, 0.35);
}

/*
  * element-plus 样式重置
*/
.el-message-box__status.el-icon {
  position: absolute;
}

.login-wrapper .el-input__icon.el-icon {
  height: inherit;
}

/*
 * 全局样式
*/

.container {
  flex-grow: 1;
  margin: 0 auto;
  position: relative;
  width: 1440px;
  min-width: 1440px;
}

.container.is-fluid {
  max-width: none !important;
  padding-left: 32px;
  padding-right: 32px;
  width: 100%;
}

.hidden {
  overflow: hidden;
}

// @media screen and (min-width: 1024px) {
//   .container {
//     max-width: 960px
//   }
// }

// @media screen and (max-width: 1215px) {
//   .container.is-widescreen:not(.is-max-desktop) {
//     max-width: 1152px
//   }
// }

// @media screen and (max-width: 1407px) {
//   .container.is-fullhd:not(.is-max-desktop):not(.is-max-widescreen) {
//     max-width: 1344px
//   }
// }

// @media screen and (min-width: 1216px) {
//   .container:not(.is-max-desktop) {
//     max-width: 1152px
//   }
// }

// @media screen and (min-width: 1408px) {
//   .container:not(.is-max-desktop):not(.is-max-widescreen) {
//     max-width: 1344px
//   }
// }

.icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.top-line {
  position: relative;

  &::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-image: linear-gradient(to right,
        #3888ff,
        #6c71ff,
        #aa58fa,
        #fb6d86);
  }
}

.color-bg {
  background-image: linear-gradient(to right,
      #3888ff,
      #6c71ff,
      #aa58fa,
      #fb6d86);
}

.hover-color-bg {
  border: 1px solid #9195a3;

  path {
    fill: #9195a3;
  }

  &:hover {
    border-color: #fff;
    background-image: linear-gradient(to right,
        #3888ff,
        #6c71ff,
        #aa58fa,
        #fb6d86);

    path {
      fill: #fff;
    }
  }
}

.article-main .article {
  img {
    max-width: 800px;
    margin: 0 auto;
    display: inline-block;
  }

  // p {
  //   padding: 25px 0;
  // }
}